
package com.senven.api.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fasterxml.jackson.databind.ser.Serializers;
import com.senven.api.pojo.Goods;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author cckimjs
 */
//防止Autowired报错
@Component
@Mapper
public interface GoodsMapper extends BaseMapper<Goods> {
    public List<Goods> queryGoodsList();
    // 不支持模糊查询
    public Goods queryGoodsListByOid(int oid);

    // 支持模糊查询
    public List<Goods> queryGoodsListByName(String name);

    //插入一个社团物资
    public int insertGoods(Goods goods);

    public int updateGoods(Goods goods);

    public int deleteGoods(int oid);
}


